<?php
class RoomsController extends AppController {
    public $name    = 'Rooms';
    public $helpers = array('Form');
    public $belongsTo = array(
        'RoomType' => array(
            'className' => 'RoomType',
            'fields'    => array('RoomType.code', 'RoomType.description')
        )
    );
    public $scaffold;

    public function rest_list ($ext='xml') {
        $data = $this->Room->find('all');
        $this->rest_render($ext, $data);
    } // rest_list

    public function index2 () {

    } // index
} // RoomsController
?>